package com.atguigu.url.controller;

import com.atguigu.url.service.Err4xxStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2021/12/3 19:52
 * @description:
 */
@RestController
public class Err4xxStatisticsController {

    @Autowired
    Err4xxStatisticsService err4xxStatistics;


    @GetMapping("/statistics/4xx")
    public HashMap<String, String> getUrlWith4xx() {

        return err4xxStatistics.getUrlWith4xx();
    }

}

